package com.example.template.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

import lombok.extern.slf4j.Slf4j;

/**
 * @author bueryouth
 * @date 2021/08/26
 */
@Slf4j
@Controller
public class OtherController {
    /**
     * 前往主页
     */
    @GetMapping("/main")
    public ModelAndView login(ModelAndView mv) {
        mv.setViewName("main");
        return mv;
    }

}